package com.zy.web.demo.duoxiancheng.demo3;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/7/28 16:17
 */
public class run3 extends Thread {
    @Override
    public void run() {
        super.run();
        for (int i = 0; i < 50000 ; i++) {
            if (this.interrupted()){
                System.out.println("已经停止");
                break;
            }
            System.out.println("i="+(i+1));
        }
    }
}
